{% extends "admin/layout.html" %}
{% block content %}
<section class="content-header">
    <h1>微电影管理系统</h1>
    <ol class="breadcrumb">
        <li><a href="{{ url_for('admin.tag_list',page=1) }}"><i class="fa fa-dashboard"></i> 标签管理</a></li>
        <li class="active">添加标签</li>
    </ol>
</section>
<section class="content" id="showcontent">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title">添加标签</h3>
                </div>
                <form role="form" method="post">
                    {{ form.csrf_token }}
                    <div class="box-body">
                        {#                        flash 提示信息#}
                        {% include "admin/layout/flash_message.html" %}
                        {#                        flash 提示信息 END #}
                        <div class="form-group">
                            {{ form.name.label }}
                            {{ form.name }}
                            {% include "admin/layout/error.html" %}
                        </div>
                    </div>
                    <div class="box-footer">
                        {{ form.submit }}
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>
{% endblock %}

{% block js %}
    <script>
        $(function(){
            $('#a-2').addClass("active");
            $('#a-2-2').addClass("active");
        })
    </script>
{% endblock %}